﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NhanVien/NhanVien.master" AutoEventWireup="true" CodeFile="frmTaoDeThi.aspx.cs" Inherits="NhanVien_frmTaoDeThi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label1" runat="server" Text="Ma De"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtMaDe" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Them" 
                    Width="60px" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Ten Quy Tac"></asp:Label>
            </td>
            <td class="style3">
                <asp:DropDownList ID="drlQuytac" runat="server" DataSourceID="SqlDataSource1" 
                    DataTextField="MaQT" DataValueField="MaQT" Height="16px" Width="126px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT [MaQT] FROM [tbl_QUYTACDETHI]"></asp:SqlDataSource>
            </td>
            <td>
                <asp:Button ID="btnSua" runat="server" onclick="btnSua_Click" Text="Sua" 
                    Width="61px" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label3" runat="server" Text="Ten Mon"></asp:Label>
            </td>
            <td class="style3">
                <asp:DropDownList ID="drlTenmon" runat="server" Height="16px" Width="125px">
                    <asp:ListItem>CSDL</asp:ListItem>
                    <asp:ListItem>Winform</asp:ListItem>
                    <asp:ListItem>ASP.NET</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnXoa" runat="server" Text="Xoa" Width="61px" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label4" runat="server" Text="Ten De Thi"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtTenDT" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnHuy" runat="server" Text="Huy" Width="62px" />
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:Label ID="Label5" runat="server" Text="Thong Tin De Thi"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Chi Tiet De Thi"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="MaDT" DataSourceID="SqlDataSource2" ForeColor="#333333" 
                    GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    AutoGenerateSelectButton="True">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="MaDT" HeaderText="MaDT" ReadOnly="True" 
                            SortExpression="MaDT" />
                        <asp:BoundField DataField="MaQT" HeaderText="MaQT" SortExpression="MaQT" />
                        <asp:BoundField DataField="MaMon" HeaderText="MaMon" SortExpression="MaMon" />
                        <asp:BoundField DataField="TenDeThi" HeaderText="TenDeThi" 
                            SortExpression="TenDeThi" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    SelectCommand="SELECT * FROM [tbl_DETHI]"></asp:SqlDataSource>
            </td>
            <td>
                <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

